/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ch3;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.model.ArrayDataModel;
import javax.faces.model.DataModel;

/**
 *
 * @author Administrator
 */
@ManagedBean
@SessionScoped
public class Top10Player2019 {

    /**
     * Creates a new instance of Top10Player2012
     */
    public Top10Player2019() {
    }
    private static final Player[] top10 = new Player[]{
        new Player("白俄罗斯", "阿扎伦卡"),
        new Player("俄罗斯", "萨拉波娃"),
        new Player("波兰", "拉德万斯卡"),
        new Player("丹麦", "沃兹尼亚奇"),
        new Player("美国", "威廉姆斯"),
        new Player("中国", "李娜"),
        new Player("法国", "巴托丽"),
        new Player("德国", "科波尔"),
        new Player("俄罗斯", "兹沃娜列娃"),
        new Player("澳大利亚", "斯托瑟")
    };
private DataModel<Player> model = new ArrayDataModel<Player>(top10);
public DataModel<Player> getTop10() { return model; }//用来支持table4.xhtml
/*   
public  Player[] getTop10() {
        return top10;
    }//用来支持table1,2,3.xhtml
*/
}
